package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.VocationalCollegeMapper;
import com.ruoyi.baoming.domain.VocationalCollege;
import com.ruoyi.baoming.service.IVocationalCollegeService;

/**
 * 专科院校信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class VocationalCollegeServiceImpl implements IVocationalCollegeService 
{
    @Autowired
    private VocationalCollegeMapper vocationalCollegeMapper;

    /**
     * 查询专科院校信息
     * 
     * @param id 专科院校信息主键
     * @return 专科院校信息
     */
    @Override
    public VocationalCollege selectVocationalCollegeById(Long id)
    {
        return vocationalCollegeMapper.selectVocationalCollegeById(id);
    }

    /**
     * 查询专科院校信息列表
     * 
     * @param vocationalCollege 专科院校信息
     * @return 专科院校信息
     */
    @Override
    public List<VocationalCollege> selectVocationalCollegeList(VocationalCollege vocationalCollege)
    {
        return vocationalCollegeMapper.selectVocationalCollegeList(vocationalCollege);
    }

    /**
     * 新增专科院校信息
     * 
     * @param vocationalCollege 专科院校信息
     * @return 结果
     */
    @Override
    public int insertVocationalCollege(VocationalCollege vocationalCollege)
    {
        return vocationalCollegeMapper.insertVocationalCollege(vocationalCollege);
    }

    /**
     * 修改专科院校信息
     * 
     * @param vocationalCollege 专科院校信息
     * @return 结果
     */
    @Override
    public int updateVocationalCollege(VocationalCollege vocationalCollege)
    {
        return vocationalCollegeMapper.updateVocationalCollege(vocationalCollege);
    }

    /**
     * 批量删除专科院校信息
     * 
     * @param ids 需要删除的专科院校信息主键
     * @return 结果
     */
    @Override
    public int deleteVocationalCollegeByIds(Long[] ids)
    {
        return vocationalCollegeMapper.deleteVocationalCollegeByIds(ids);
    }

    /**
     * 删除专科院校信息信息
     * 
     * @param id 专科院校信息主键
     * @return 结果
     */
    @Override
    public int deleteVocationalCollegeById(Long id)
    {
        return vocationalCollegeMapper.deleteVocationalCollegeById(id);
    }
}
